package com.example.lyqwork.service;

import com.example.lyqwork.pojo.CarOrder;
import com.example.lyqwork.pojo.dto.CarOrderDto;
import com.example.lyqwork.pojo.dto.UserEditDto;

import java.util.List;

public interface IOrderService {
    //插入订单
    CarOrder add(CarOrderDto order);
    //查询订单
    List<CarOrder> getOrder(Integer userId,Integer page,Integer pageSize);
    //通过订单号查找订单
    List<CarOrder> getOrderByOrderId(Integer orderId);
    //修改订单
    CarOrder update(UserEditDto user);
    //删除
    void deleted(Integer orderId);
    //修改订单
    CarOrder update(CarOrder order);
}
